package com.zxx.ssm.service;

import com.zxx.ssm.dao.Student;
import com.zxx.ssm.dao.TeacherAvaliableTimeblock;
import com.zxx.ssm.dao.TeacherAvaliableTimeblockExample;
import com.zxx.ssm.mapper.TeacherAvaliableTimeblockMapper;
import com.zxx.ssm.model.biz.TeaAvaTimeblockBiz;
import com.zxx.ssm.service.core.ITeaAvaTimeService;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class TeaAvaTimeService extends AbstractService<TeacherAvaliableTimeblock, TeacherAvaliableTimeblockExample, Integer, TeacherAvaliableTimeblockMapper> implements ITeaAvaTimeService {
    public TeaAvaTimeService(TeacherAvaliableTimeblockMapper teacherAvaliableTimeblockMapper){
        super(teacherAvaliableTimeblockMapper);
    }

    public List<Student> getAvaTimeTea(Date curDay, Integer timeblockId) {
        return this.baseMapper.getAvaTimeTea(curDay, timeblockId);
    }

    public List<TeaAvaTimeblockBiz> getTeaAvaTime(Integer teaId, Date firstDay, Date lastDay) {
        return this.baseMapper.getTeaAvaTime(teaId, firstDay, lastDay);
    }
}
